package com.joker.demo.service.handler;


import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import lombok.extern.slf4j.Slf4j;

/**
 * @author : feixiang.li
 * @since : 2025-09-25 20:58
 */
@Slf4j
public class InvoiceHandler {


    @Tool
    public String handleInvoice(@P("公司名称") String companyName,
                                @P("税号") String invoiceNumber, @P("金额保留两位有效数字") String amount) {
        log.info("处理发票:{}", companyName);
        log.info("税号:{}", invoiceNumber);
        log.info("金额:{}", amount);
        return "处理发票成功";
    }
}
